import request from "@/utils/request";

// 查询系统消息列表
export function listBizMessageInfo(query) {
  return request({
    url: "/biz/bizMessageInfo/list",
    method: "get",
    params: query,
  });
}

// 查询系统消息详细
export function getBizMessageInfo(id) {
  return request({
    url: "/biz/bizMessageInfo/" + id,
    method: "get",
  });
}

// 新增系统消息
export function addBizMessageInfo(data) {
  return request({
    url: "/biz/bizMessageInfo",
    method: "post",
    data: data,
  });
}

// 修改系统消息
export function updateBizMessageInfo(data) {
  return request({
    url: "/biz/bizMessageInfo",
    method: "put",
    data: data,
  });
}

// 删除系统消息
export function delBizMessageInfo(id) {
  return request({
    url: "/biz/bizMessageInfo/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizMessageInfo/findMaxSort",
    method: "get",
  });
}
// 导出系统消息
export function exportBizMessageInfo(query) {
  return request({
    url: "/biz/bizMessageInfo/export",
    method: "get",
    params: query,
  });
}
// 批量修改已读状态
export function updateIsReadMulti(data) {
  return request({
    url: "/biz/bizMessageInfo/updateIsReadMulti",
    method: "put",
    data: data,
  });
}
